import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';

class BannerPage extends StatefulWidget{

  Map arguments;
  BannerPage({this.arguments});
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
   return _BannerPageState();
  }

}

class _BannerPageState extends State<BannerPage>{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(title:Text("${widget.arguments['title']}") ,
        centerTitle: true,),
      body: Container(
        child: Image.network("${widget.arguments['url']}"),
        // WebView(
        //   initialUrl: "${widget.arguments['url']}",
        // ),
      ),
    );
  }

}